import { delay, call, put } from 'redux-saga/effects'
import axios from 'axios'

function * init() {
    let res = yield call(axios.get, "https://api-hmugo-web.itheima.net/api/public/v1/categories")
    yield put({ type: "INIT", list: res.data.message })
}

export default init